package com.demo.mqtt.common.client;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class BootStrap implements ApplicationRunner {

    @Autowired
    private MqttConnectionUtils mqttConnectionUtils;

    @Override
    public void run(ApplicationArguments args) {
        mqttConnectionUtils.start();
    }
}
